package com.express.ExpInsuranceWallet.service;


import com.express.ExpInsuranceWallet.bean.ExpInsuranceWallet;
import com.express.ExpInsuranceWallet.dao.ExpInsuranceWalletDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("ExpInsuranceWallet")
public class ExpInsuranceWalletManager {
    @Autowired
    ExpInsuranceWalletDao expInsuranceWalletDao;

    public ExpInsuranceWallet findUniqueBy(String propertyName, Object value) {
        return expInsuranceWalletDao.findUniqueBy(propertyName, value);
    }

    public List<ExpInsuranceWallet> findBy(String propertyName1, Object value1, String propertyName2, Object value2) {
        return expInsuranceWalletDao.findBy(propertyName1, value1, propertyName2, value2);
    }

    public List<ExpInsuranceWallet> findBy(String propertyName, Object value) {
        return expInsuranceWalletDao.findBy(propertyName, value);
    }

    public void save(ExpInsuranceWallet expInsuranceWallet) {
        expInsuranceWalletDao.save(expInsuranceWallet);
    }
}
